
<div class="padding-big background-color">
<div class="form-group">
							<p>删除卡密必须填写1以防止勿点击</p>
							   <input type="text" id="kami-yes" class="form-control" name="kami-yes" placeholder="填写1" value=""> <em></em>
							</div><br><br>
<div class="form-group">
							    <button type="submit" class="btn btn-info" id="kami-del">删除全部卡密</button>
							    
							    
							</div>
    <table class="layui-table admin-table">
   <tr align="center">
   
    <th>id</th>
    <th>制卡用户</th>
    <th>类 型</th>
    <th>价值rmb</th>
    <th>是否使用</th>
    <th>卡 密</th>
    <th>代 码</th>
    <th>使用ID</th>
    <th>制卡时间</th>
    <th>使用时间</th>
    <th>操 作</th>
   </tr>
<?php
require_once 'class/dbConn.php';
//这是啥东东。。

//读数据。。。
$yh=$_COOKIE['name'];
$sql = "select * from ark_kami where user='$yh'";
  $result = mysqli_query($con,$sql);
  $userList = '';
  while($rs = mysqli_fetch_array($result)){
        $userList[] = $rs;
    }
          // 循环用户列表
        foreach ($userList as $user){
			
			if($user['end_time']!=""){
				$end_time=date("Y-m-d",$user['end_time']);
				}
			if($user['leixin']==0){
				$leixin="金币卡";
				}
			if($user['shiyong']==0){
				$shiyong="未使用";
				}else{
					$shiyong="已使用";
					};
          echo "
             <tr>
			<td> ".$user['id']."</td>
			<td> ".$user['user']."</td>
              
              <td> ".$leixin."</td>
              <td> ".$user['jiazhi']."</td>
              <td> ".$shiyong."</td>
              <td> ".$user['kami']."</td>
			  <td> ".$user['daima']."</td>
			  <td> ".$user['stmid']."</td>
              <td> ".date("Y-m-d",$user['add_time'])."</td>
              <td> ".$end_time."</td>
              <td> 
              <a href='delkami.php?id=".$user['id']."');\">&nbsp删</a>
              <a href='#".$user['id']."');\">&nbsp冻结</a>                    
              </td>
             </tr>
          ";
        }
?>
  </table>
</div>